package com.bitcommunity.controller;

import com.bitcommunity.json.Json;
import com.bitcommunity.service.CommunityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName MomentController
 * @Description
 * @date 2023/11/16 19:06
 * @Author Squareroot_2
 */
@RestController
@RequestMapping("/moments")
public class MomentController {
    @Autowired
    CommunityService communityService;

    @GetMapping("")
    Json browseMoment(){
        return null;
    }

    @GetMapping("/{momentid}")
    Json viewMoment(@PathVariable("momentid") int mid){
        return null;
    }

    @PostMapping("")
    Json createMoment(){
        return null;
    }

    @DeleteMapping("/{momentid}")
    Json deleteMoment(@PathVariable("momentid") int mid){
        return null;
    }

    @GetMapping("/{momentid}/review")
    Json browseMomentReview(@PathVariable("momentid") int mid){
        return null;
    }

    @PostMapping("/{momentid}/review")
    Json createMomentReview(@PathVariable("momentid") int mid){
        return null;
    }

    @DeleteMapping("/{momentid}/review/{momentrid}")
    Json createMomentReview(@PathVariable("momentid") int mid,
                            @PathVariable("momentrid") int mrid){
        return null;
    }

    @PostMapping("/{momentid}/likes")
    Json giveLikeForMoment(@PathVariable("momentid") int mid){
        return null;
    }

    @DeleteMapping("/{momentid}/likes")
    Json deleteLikeFromMoment(@PathVariable("momentid") int mid){
        return null;
    }

    @PostMapping("/{momentid}/reviews/{momentrid}/likes")
    Json giveLikeForMomentReview(@PathVariable("momentrid") int mrid){
        return null;
    }

    @DeleteMapping("/{momentid}/reviews/{momentrid}/likes")
    Json deleteLikeFromMomentReview(@PathVariable("momentrid") int mrid){
        return null;
    }

}
